﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ch03
{
    class Class11
    {
        static void Main(string[] args)
        {
            int a, b, c=2, d=3;

            //算术、关系、逻辑运算符优先级一样的话，会从左往右进行运算
            //而赋值运算符优先级一样的话，会从右往左进行运算
            a = b = c *= d += 3;

            Console.WriteLine("a={0}", a);
            Console.WriteLine("b={0}", b);
            Console.WriteLine("c={0}", c);
            Console.WriteLine("d={0}", d);

        }
    }
}
